package com.xxxx.Mytest

import scala.io.StdIn

/**
 * @program: test01
 * @description:
 * @author: CoreDao
 * @create: 2021-03-02 17:27
 **/
object Test1 {
  def main(args: Array[String]): Unit = {
    println("请输入姓名")
    val name = StdIn.readLine()
    println("请输入年龄")
    val age = StdIn.readInt()
    printf("您输入的姓名是%s,您输入的年龄是%d",name,age)
  }
}
